// Shareware.cpp : implementation file
//

#include "stdafx.h"
#include "moretunes.h"
#include "Shareware.h"
#include ".\shareware.h"
#include "register.h"

// CShareware dialog

IMPLEMENT_DYNAMIC(CShareware, CDialog)
CShareware::CShareware(CWnd* pParent /*=NULL*/)
	: CDialog(CShareware::IDD, pParent)
{
}

CShareware::~CShareware()
{
}

void CShareware::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CShareware, CDialog)
	ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
	ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()

// CShareware message handlers

void CShareware::OnBnClickedButton1() {
	ShellExecute(NULL, "open", URL_BUY_MORETUNES, NULL, NULL, SW_SHOWNORMAL);	
	EndDialog(TRUE);
}

void CShareware::OnBnClickedOk()
{
	Sleep(1500);
	OnOK();
}
